<script setup>
	import {
		ref,
		reactive
	} from 'vue';
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		getinformationinfo
	} from '@/api/index';
	const info=ref({})
	const htmlContent = ref('<div>这是<strong>富文本</strong>内容</div>');
	onLoad((options)=>{
		console.log(options.id)
		if(options?.id){
			getinformationinfo({id:options.id}).then(res=>{
				uni.setNavigationBarTitle({
					title:res.title
				})
				info.value=res
			})
		}
	})
</script>

<template>
	<view class="app-detail">
		<text class="app-title">
			{{info.introduction}}
		</text>

		<view class="app-info">
			<text>合皋健康</text>
			<text>{{info.release_time}}</text>
		</view>

		<view class="app-content">
			<rich-text :nodes="info.information"></rich-text>
		</view>
	</view>
</template>

<style src="./style.scss" scoped />